import json

from config import BASE_PATH


def build_data(file_name):
    """读取json文件，将json文件转换为 [(),(),()]"""
    with open(BASE_PATH + "/data/" + file_name, encoding="utf-8") as f:
        data = json.load(f)
        result = list()
        for item in data:
            i = tuple(item.values())
            result.append(i)
        return result

if __name__ == '__main__':
    print(build_data("login_data.json"))
